packaging: fix bashism in dist-snapshot target
authorSimon McVittie <smcv@debian.org>
Mon, 28 Mar 2016 11:25:17 +0000 (12:25 +0100)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Mon, 28 Mar 2016 11:50:11 +0000 (11:50 +0000)
On Debian and its derivatives, /bin/sh is a lightweight POSIX shell
(currently dash) which does not support the bash {foo,bar} syntax.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #226
Approved by: cgwalters

packaging/Makefile.dist-packaging

index b55211d6cc2312d0a8daa8b48be1af5f26066d3f..096aeaba1aafee2e996c0dc60a0e58ee0def2315 100644 (file)
@@ -22,7 +22,7 @@ dist-snapshot:
          tar -A -f $${TARFILE_TMP} submodule.tar; \
          rm submodule.tar; \
        done; \
-       mv $(PKG_VER).tar{.tmp,}; \
+       mv $(PKG_VER).tar.tmp $(PKG_VER).tar; \
        rm -f $(PKG_VER).tar.xz; \
        xz $(PKG_VER).tar